<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get next pending FAM event</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fam-monitor-file.html">fam_monitor_file</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fam-open.html">fam_open</a></div>
 <div class="up"><a href="ref.fam.html">FAM 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.fam-next-event" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fam_next_event</h1>
  <p class="verinfo">(PHP 5 &lt;= 5.0.5)</p><p class="refpurpose"><span class="refname">fam_next_event</span> &mdash; <span class="dc-title">Get next pending FAM event</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.fam-next-event-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>fam_next_event</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$fam</code></span>
   )</div>

  <p class="para rdfs-comment">
   Returns the next pending FAM event.
  </p>
  <p class="para">
   The function will block until an event is available which can be checked
   for using <span class="function"><a href="function.fam-pending.html" class="function">fam_pending()</a></span>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.fam-next-event-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">fam</code></em></dt>

     <dd>

      <p class="para">
       A resource representing a connection to the FAM service returned by
       <span class="function"><a href="function.fam-open.html" class="function">fam_open()</a></span>
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.fam-next-event-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an array that contains a FAM event code in the
   &#039;<em>code</em>&#039; element, the path of the file this event applies
   to in the &#039;<em>filename</em>&#039; element and optionally a hostname
   in the &#039;<em>hostname</em>&#039; element.
  </p>
  <p class="para">
   The possible event codes are described in detail in the
   <a href="fam.constants.html" class="link">constants part</a> of this section.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.fam-next-event-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.fam-pending.html" class="function" rel="rdfs-seeAlso">fam_pending()</a> - Check for pending FAM events</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fam-monitor-file.html">fam_monitor_file</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fam-open.html">fam_open</a></div>
 <div class="up"><a href="ref.fam.html">FAM 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
